From b12096d7038cc4780265ee6bcb0f66bd4f061736 Mon Sep 17 00:00:00 2001 From: "kgrant@localhost.localdomain" Date: Mon, 21 Nov 2005 18:53:31 +0100 Subject: [PATCH] use help in create.py for "xm help create" --- tools/python/xen/xm/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index ba89e6a766..143e521a7a 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -182,7 +182,7 @@ For more help on xm create, see the xmdomain.cfg(5) man page""" help = { "--long": longhelp, "console": console_help, - "create": create_help, +# create is handled specially "destroy": destroy_help, "domid ": domid_help, "domname": domname_help, @@ -846,6 +846,9 @@ def deprecated(old,new): err('Option %s is the new replacement, see "xm help %s" for more info' % (new, new)) def usage(cmd=None): + if cmd = 'create' + xm_subcommand("create", "--help") + sys.exit(1) if help.has_key(cmd): print " " + help[cmd] else: -- 2.30.2